package com.example.orderservice.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: OrderController
 * PackageName: com.example.orderservice.controller
 * Describe:
 *
 * @author: Cheng Wenying
 * @Create: 2023/10/24
 * @version:
 */
@RestController
@RefreshScope
@RequestMapping("order")
public class OrderController {

    @Value("${value}")
    private String value;

    @GetMapping("/add")
    public String getOrderData() {
        return "下单成功，得到订单数据：**********************" + value;
    }
}
